//
//  UIView+MY.h
//  JQLive
//
//  Created by Bruce on 2020/3/3.
//  Copyright © 2020 mlqk. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void (^TapBlock)(void);

NS_ASSUME_NONNULL_BEGIN

@interface UIView (MY)

@property (nonatomic, copy) TapBlock tapBlock;

- (void)my_addTapGes:(TapBlock)block;

- (void)moveToHorizontal:(CGFloat)horizontal toVertical:(CGFloat)vertical;
- (void)addBouncesAnimation;

///frame.origin.x
@property (nonatomic,assign) CGFloat x;
///frame.origin.y
@property (nonatomic,assign) CGFloat y;
///frame.size
@property (nonatomic,assign) CGSize size;
///frame.size.width
@property (nonatomic,readonly) CGFloat width;
///frame.size.height
@property (nonatomic,readonly) CGFloat height;
///bounds.size.width
@property (nonatomic,readonly) CGFloat boundsW;
@property (nonatomic,readonly) CGFloat boundsH;
@property (nonatomic,readonly) CGFloat boundsX;
@property (nonatomic,readonly) CGFloat boundsY;
#pragma mark 获取最上面的控制器
- (UIViewController*)currentViewController;
@end

NS_ASSUME_NONNULL_END
